package com.dc.business.model;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;

@Data
@ApiModel(value = "定位标签模块Model")
public class Tag implements Serializable {

   @ApiModelProperty(value = "创建时间")
   private Date createTime;

   @ApiModelProperty(value = "创建人id")
   private int createUserId;

   @ApiModelProperty(value = "创建人姓名")
   private String createUserName;

   @ApiModelProperty(value = "0删除1存在")
   private int isDeleted;

   @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
   @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss")
   @ApiModelProperty(value = "注册时间")
   private Date registerTime;

   @ApiModelProperty(value = "标签自身id")
   private String tagEid;

   @ApiModelProperty(value = "定位标签id")
   private int tagId;

   @ApiModelProperty(value = "定位标签名称")
   private String tagName;

   @ApiModelProperty(value = "定位标签类型（0默认定位标签，1电子秤标签，2仓库标签）")
   private int tagType;

   @ApiModelProperty(value = "修改时间")
   private Date updateTime;

   @ApiModelProperty(value = "修改人id")
   private int updateUserId;

   @ApiModelProperty(value = "修改人姓名")
   private String updateUserName;

   @ApiModelProperty(value = "版本号")
   private int version;

   @ApiModelProperty(value = "x1位置（用于方形定位：如仓库）")
   private String x1post;

   @ApiModelProperty(value = "x2位置（用于方形定位：如仓库）")
   private String x2post;

   @ApiModelProperty(value = "x位置（用于点状定位：如电子秤）")
   private String xpost;

   @ApiModelProperty(value = "y1位置（用于方形定位：如仓库）")
   private String y1post;

   @ApiModelProperty(value = "y2位置（用于方形定位：如仓库）")
   private String y2post;

   @ApiModelProperty(value = "y位置（用于点状定位：如电子秤）")
   private String ypost;

   @ApiModelProperty(value = "所属位置id")
   private String fkPostId;

   @ApiModelProperty(value = "所属位置名称")
   private String postName;
}
